package com.blog.service;

import com.blog.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    void saveUser(User user);

    boolean updateUser(User user);

    boolean deleteUser(int id);

    User findUserById(int id);

    List<User> findAll();

    User getByUser(@Param("account") String account, @Param("password") String password);
}
